home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / fileutil.zip / MAKEFILE < prev    next >
Text File  |  1994-07-16  |  4KB  |  140 lines

  1. # Makefile for fileutils (MS-DOS)
  2. # Copyright (C) 1986, 1988, 1989 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 1, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. # MS-DOS port (c) 1990 by Thorsten Ohl, ohl@gnu.ai.mit.edu
  19. # This port is also distributed under the terms of the
  20. # GNU General Public License as published by the
  21. # Free Software Foundation.
  22.  
  23. # Please note that this file is not identical to the
  24. # original GNU release, you should have received this
  25. # code as patch to the official release.
  26.  
  27. # $Header: e:/gnu/fileutil/RCS/makefile 1.4.0.3 90/09/19 13:27:14 tho Exp $
  28.  
  29.  
  30. TKERN=C:\SRC\TKERN
  31. .obj.exe:
  32.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  33. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  34. !
  35.  
  36. .c.exe:
  37.     bcc -c $*.c
  38.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  39. c0wl.obj $*.obj,$*.exe,,gnuish tklib tkern cwl import,$*.def
  40. !
  41.  
  42. .c.i:
  43.     cpp $*.c
  44.  
  45. INSTALL = cp -v
  46. DISK    = b:
  47. ZIPFILE = fileutil.zip
  48.  
  49. MODEL    = S
  50. model    = s
  51.  
  52. # The defines and CFLAGS are in turboc.cfg
  53.  
  54. DEFINES    = 
  55. CFLAGS    = $(DEFINES)
  56.  
  57. .AUTODEPEND
  58.  
  59. # These are designed to give < 100k .tar.Z.uue files.
  60.  
  61. CMDS1    = cat.exe chmod.exe cmp.exe cp.exe
  62. CMDS2    = cut.exe dd.exe head.exe
  63. CMDS3    = ls.exe mkdir.exe mv.exe paste.exe
  64. CMDS4    = rm.exe rmdir.exe tac.exe
  65. CMDS5    = tail.exe touch.exe
  66.  
  67. CMDS    = $(CMDS1) $(CMDS2) $(CMDS3) $(CMDS4) $(CMDS5)
  68.  
  69. # Sources
  70.  
  71. SRCS    = argmatch.c backupfi.c cat.c chmod.c cmp.c cp-aux.c cp.c cut.c \
  72.       dd.c eaccess.c filebloc.c filemode.c getversi.c head.c ls.c \
  73.       mkdir.c modechan.c mv.c paste.c rm.c rmdir.c savedir.c tac.c \
  74.       tail.c touch.c getdate.y posixtim.y
  75. INCS    = backupfi.h cp.h modechan.h system.h
  76.  
  77. UNUSED    = cp-hash.c dirlib.c du.c error.c getopt.c getopt.h getopt1.c \
  78.       globmat.c install.c ln.c mkfifo.c mktime.c mvdir.c regex.c regex.h
  79.  
  80. DOCS    = fileutil.pl
  81. MPAGES    = gcat.1 gchmod.1 gcmp.1 gcp.1 gcut.1 gdd.1 gdu.1 ghead.1 \
  82.       ginstall.1 gln.1 gls.1 gmkdir.1 gmkfifo.1 gmv.1 gpaste.1 \
  83.       grm.1 grmdir.1 gtac.1 gtail.1 gtouch.1
  84.  
  85. # Version of fileutils release
  86.  
  87. VERSION = 1.4
  88.  
  89. # Targets
  90.  
  91. all: $(CMDS)
  92.  
  93. chmod.exe: chmod.obj filemode.obj modechan.obj savedir.obj
  94.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  95. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  96. !
  97.  
  98. cp.exe: cp.obj argmatch.obj backupfi.obj cp-aux.obj eaccess.obj getversi.obj \
  99.     savedir.obj
  100.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  101. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  102. !
  103.  
  104. dir.exe: argmatch.obj filebloc.obj filemode.obj
  105.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  106. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  107. !
  108.  
  109. ls.exe: ls.obj argmatch.obj filebloc.obj filemode.obj
  110.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  111. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  112. !
  113.  
  114. vdir.exe: argmatch.obj filebloc.obj filemode.obj
  115.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  116. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  117. !
  118.  
  119. mkdir.exe: mkdir.obj modechan.obj
  120.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  121. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  122. !
  123.  
  124. mv.exe: mv.obj argmatch.obj backupfi.obj getversi.obj
  125.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  126. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  127. !
  128.  
  129. rm.exe: rm.obj eaccess.obj
  130.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  131. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  132. !
  133.  
  134. touch.exe: touch.obj argmatch.obj getdate.obj posixtim.obj
  135.     tlink /v /c /C /s /n /Twe /L$(TKERN)\LIB;\bc4\lib @&&!
  136. c0wl.obj $**,$*.exe,,gnuish tklib tkern cwl import,$*.def
  137. !
  138.  
  139.  
  140.